<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    use HasFactory;

    protected $fillable = [
        'id', 'category_id', 'name', 'cover',
        'original_price', 'current_price', 'summary',
        'description', 'provider', 'attributes'
    ];

    protected $casts = [
        'attributes' => 'json',
    ];
}
